﻿using DataAccess;
using NewsCrawler.Common.Interfaces;

namespace ClientLibrary
{
    public class Core
    {
        private static Core _instance;

        private Core()
        {
        }

        public static Core Instance
        {
            get { return _instance ?? (_instance = new Core()); }
        }

        private IRepository _repository;
        public IRepository Repository
        {
            get { return _repository ?? (_repository = new RavenRepository()); }       
        }
    }
}